/**
 * COPYRIGHT. Harry Wu 2011. ALL RIGHTS RESERVED.
 * Project: just
 * Author: Harry Wu <harrywu304@gmail.com>
 * Created On: Jun 14, 2011 9:37:24 AM
 *
*/ 
package org.justframework.core;

import java.net.URI;

import org.justframework.ext.http.HttpClient;
import org.justframework.ext.zeroc.IceClient;

/**
 * @author whx
 *
 */
public class ClientConnectorFactory {
	
	public static ClientConnector getClientConnector(URI uri){
		ClientConnector clientConnector = null;
		String schema = uri.getScheme().toLowerCase();
		if("http".equals(schema)){
			clientConnector = new HttpClient(); 
		} /*else if("ice".equals(schema)){
			clientConnector = new IceClientConnector(); 
		}*/
		return clientConnector;
	}

}
